An Implementation for Nested Relational Databases

نویسندگان

  • Anand Deshpande
  • Dirk Van Gucht
چکیده

1 Introductim We propose an architecture for implementing nested relational databases. In particular, we discuss the storage structures, their organization and an access language for specifying access plans. The featurw of our implementation are: In this paper we propose an implementation, ANDA’ for the Nested Relational Data Model(NRJ3M). In partitular, we diicuaa the storage structures, their organization, and an access language for specifying access plans. The motivation for our design comes from these observations: A notation for hierarchical tuple identification. One value-driven indexing structure (VALTREE) for the entire database. A main-memory based component (CACHE) for manipulating hierarchical tuple-identifiers. A hashing scheme (RECLISTS) for fast access to data specified by tuple-identifiers. An access language based on the VALTREE, the RECLIST and the CACHE to define access plans for execution of queries. l In the NHDM, select, join and neat are ‘valuedriven’ operations while project and unneat are not. To implement the value-driven operations it is crucial to efficiently determine which attribute and tuplea are associated with a particular ‘value’. In contrast, for ‘structure-oriented’ operations like project and unnest, it is required to efficiently access tuples and their components irrespective of the values contained in them. Data-structures that are well suited for project and unneat are unfortunately not always suitable for the value-driven operations. Hence our proposal for two storage structures where one supports value-driven requests effectively, while the other supports structureoriented operations. Pemusaon to copy without fee all ar put of this granted pvided that the oopies are not made or disrritutcd for direct commercial advantage, the VLDB cop&ht notice md the title of the public&m and its date s~~eer, and notice L given that copying is by permission of the Very Large Data Base Endowment. To copy otbawise. or to republish. mquires a fee ml/or special pcnnizzion fmm the Edowment. l Primary storage on computers has become fairly inexpensive while a disk access is still conaiderably more expensive than a memory access. We exploit this availability of main memory and indicate methods that use the cache to perform queries more efficiently. We chose to implement the NRDM from scratch rather than map it to some other &sting database implemen‘ANDA Acronymafor a Nested Database Architecture. In Hindi, ANDA meen egg, romching you ace likely to find in * neat. Proceedings of the 14th VLDB Conference Los Angeles, California 1988 76 tations for the following reasons: l Tuple components are not necessarily atomic, making the mapping to the relational model difficult [22]. l Query optimizations that exploit the nested relational model cannot be used when the underlying storage structure is relational [3]. l Selections are often made on components deeply nested within tuples [12, 19, 201. l Hierarchical and network models were not developed with high level non-procedural languages in mind [8]. In Section 2 we discuss the architecture of ANDA. In Section 3 we describe a notation for tuple identification and then discuss the storage components of ANDA VALTREE, RECLIST and CACHE. In Section 4 we discuss the operations on these three components and define our access language. In Section 5 we demonstrate how some queries could be implemented in the access language. Finally, in Section 6 we discuss important observations about this implementation and discuss issues that need further investigation. 2 The ANDA Architecture The are: major components of ANDA as shown in Figure 1 VALTREE a tree structure storing all the atomic values present in the tuples and sub-tuples of the database, RECLIST record-list structures which store data as tuples and sub-tuples, CACHE the main memory component of the implementation where tuple-ids are manipulated, DATA-DICTIONARY stores all the important information about structure definitions, ACCESS LANGUAGE INTERPRETER interprets instructions described in the access language, l QUERY LANGUAGE OPTIMIZER this optimizes the query language expression into an access plan, l GRAPHICAL QUERY LANGUAGE this is the one of the user interfaces which maps to the optimizer, . Figure 1: Components of ANDA l OBJECT-ORIENTED INTERFACE This uses the NRDM as the back-end. The typical execution of a query would involve the following steps:

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Querying Nested Historical Relations in Heterogeneous Databases Environment

We study schema integration problems for consolidating historical information from nested relational databases in heterogeneous databases environment. These nested relations are for supporting complex objects. In heterogeneous databases systems, probabilistic partial values have been used to resolve some schema integration problems. In this paper, we extend the concept of probabilistic partial ...

متن کامل

A study of nested-relational joins in mediator-based distributed environments

This thesis reports on the results of a study of the nested join operator in a mediator-based setting. As the rate at which data is accumulated increases, the need for integration of di erent (physical) Database Management Systems (DBMS) becomes apparent. The most fundamental and arguably important operation that is used in order to achieve this is the join-operator. The nested-relational model...

متن کامل

Implementing Incremental View Maintenance in Nested Data Models

Previous research on materialized views has primarily been in the context of flat relational databases-materialized views defined in terms of one or more flat relations. This paper discusses a broader class of view definitions-materialized views defined over a nested data model such as the nested relational model or an object-oriented data model. An attribute of a tuple deriving the view can be...

متن کامل

Aggregation and Composition in Object - Relational Database Design

Recently, there have emerged more sophisticated applications, which have to represent complex objects related with complex relationships, such as aggregations and compositions. New object-relational databases are more appropriated than relational databases to support complex objects. Besides, the most common way of designing databases is using the E/R model, without taking in account the progra...

متن کامل

An Extended Algebra for Constraint

| Constraint relational databases use constraints to both model and query data. A constraint relation contains a nite set of generalized tuples. Each generalized tuple is represented by a conjunction of constraints on a given logical theory and, depending on the logical theory and the speciic conjunction of constraints, it may possibly represent an in-nite set of relational tuples. For their ch...

متن کامل

Designing nesting structures of user-defined types in object-relational databases

This paper presents a methodology for designing proper nesting structures of user-defined types in object-relational databases. Briefly, we envision that users model a real-world application by using the EER model, which results in an EER schema. Our algorithm then uses the theory we developed for nested relations to generate scheme trees from the EER schema. We shall prove that the resulting s...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1988